﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:conv="clr-namespace:JasRibbonApplicatie.Converters"
	  xmlns:JasRibbonApplicatie="clr-namespace:JasRibbonApplicatie" x:Class="JasRibbonApplicatie.Views.Scannen"
      xmlns:UsrControls="clr-namespace:JasRibbonApplicatie.UserControls"
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="1280"
	Title="Scannen" FontSize="18">
    <Page.Resources>
        <conv:TypeToStyleConverter x:Key="TypeToStyleConverter"/>
    </Page.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        
        <Grid Grid.Column="1" Margin="5" x:Name="scanGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="224" />
                <ColumnDefinition Width="198" />
            </Grid.ColumnDefinitions>
            <TextBox Height="34" x:Name="scanTextBox" Width="165" TextChanged="scanTextBox_TextChanged" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="20" FontFamily="Estrangelo Edessa" Margin="8,5,0,5" HorizontalAlignment="Left" Grid.Column="1" />
            <Label Content="Scannen (of intypen):" x:Name="uitlegScannenLabel" Visibility="Visible" HorizontalAlignment="Left" VerticalContentAlignment="Center" Margin="0,5" />
        </Grid>
        <Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" x:Name="uitscannenMaterialenGrid" VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            
            <Label Content="Laatst ingescand:" x:Name="laatstGescandUitlegLabel" />
            <Image Height="32" x:Name="statusImage" Stretch="Fill" Width="32" Source="/JasRibbonApplicatie;component/Images/info.png" Grid.Column="1" />
            <TextBox x:Name="laatstGescandTextBox" Width="165" Focusable="False" Grid.Column="2" HorizontalAlignment="Left" Margin="7,5,0,5" />
            <GroupBox Header="Producten" x:Name="materialenGroupBox" Grid.Row="1" Grid.ColumnSpan="3">
                <UsrControls:OntleningDataList x:Name="ontleningenDataList" MaxHeight="500" />
            </GroupBox>
        </Grid>
        <GroupBox Grid.RowSpan="2" Header="Probleem" Name="probleemGroupbox" Visibility="Collapsed" Grid.Column="2">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="62" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Image Height="49" HorizontalAlignment="Left" Margin="6" Name="probleemImage" Source="/JasRibbonApplicatie;component/Images/info.png" Stretch="Fill" VerticalAlignment="Top" Width="50" />
                <TextBox Focusable="False" Foreground="#FFAA0000"  Margin="6" Name="probleemTextBox" TextWrapping="Wrap" Grid.Column="1" />
            </Grid>
        </GroupBox>
    </Grid>
</Page>

